package com.hot12345.job.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.hot12345.service.IndexService;

public class CreateIndexHtmlJob implements Job {

	private final static Log log = LogFactory.getLog(CreateIndexHtmlJob.class);
	public void execute(JobExecutionContext context)
		throws JobExecutionException {
		log.debug("静态化首页面...");
		try{
			IndexService.index();
		}catch(Exception e){
			log.error("静态化首页异常", e);
		}
	}
}
